<include file="./top" /> 
<!-- start: Header --> 
<include file="./head" /> 
<!-- end: Header -->
<div class="container-fluid content">
<div class="row"> 
  <!-- start: Main Menu --> 
  <include file="./slide" /> 
  <!-- end: Main Menu --> 
  
  <!-- start: Content -->
  <div class="main sidebar-minified"> 
    <!--div class="row">
      <div class="col-lg-12">
        <h3 class="page-header"><i class="fa fa-table"></i>{$title}</h3>
      </div>
    </div-->
    <div class="row">
      <div class="col-lg-10">

<div class="alert alert-danger" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  <strong>友情提示</strong>
  1.提现失败(资金会回滚到会员的余额里面)
  2.拒绝提现:(提现金额会就入冻结金额里面);
  3.会员账号余额(会员实时账号余额)

</div>


        <div class="panel panel-default">
          <div class="panel-heading">
            <h2><i class="fa fa-table red"></i><span class="break"></span><strong>
              <?php if($status==1){echo "等待提现";}?>
              <?php if($status==2){echo "失败提现";}?>
              <?php if($status==3){echo "拒绝提现";}?>
              <?php if($status==4){echo "成功提现";}?> 
            </strong></h2>      <span>总额:{$zonger}</span>
            <div class="panel-actions"> <a href="table.html#" class="btn-setting"><i class="fa fa-rotate-right"></i></a> <a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a> </div>
          </div>
          <div class="panel-body">
            <table class="table table-striped table-bordered bootstrap-datatable datatable">
              <thead>
                <tr>
                  <th >提现时间</th>
                  <th >会员ID | 手机 | 微信昵称</th>
                  <th >提现类型</th>
                  <th >提现金额 | 提现账号</th>
                  <th >提现状态</th>
                  <th >会员账号余额 | 冻结金额</th>
                  <?php if($status==1){?>
                  <!--th>流量稽查</th-->
                  <th >操作</th>
                  <?php } ?>
                </tr>
              </thead>
              <tbody>
                <?php foreach($tixian as $v): ?>
                <tr>
                  <td>{$v['id']} | {:date("Y-m-d H:i:s",$v['time'])}</td>
                  <td>{$v['uid']} | <?php if($v['user_tel']){ echo $v['user_tel']; }else{ echo "手机未绑定";} ?> | 
                  <?php if($v['nickname']){ echo $v['nickname']; }else{ echo "微信未绑定";} ?>
                  </td>
                  <td>{:get_type($v['type'])}</td>
                  <td>{$v['price']} | {:get_type($v['type'])} : <?php if($v['type']==1){ echo $v['alipay']." 姓名 : ".$v['alipayname'];}else{ echo $v['user_tel']; } ?> </td>

                  <td>{:get_status($v['status'])}</td>
                  <td>{$v['balance']} | {$v['dongjie']}</td>
                  <!--td>加款日志 | 流量日志</td-->
                  <?php if($status==1){ ?>
                  <td class="status"><a href="<?php echo U('Tixian/tixian_do',array("id"=>$v['id'],"status"=>4,"uid"=>$v['uid'])) ?>">成功</a> | 
                  <a href="{:U('Tixian/tixian_do',array("id"=>$v['id'],"status"=>3,"uid"=>$v['uid']))}">拒绝</a> | 
                  <a href="{:U('Tixian/tixian_do',array("id"=>$v['id'],"status"=>2,"uid"=>$v['uid']))}">失败</a></td>
                  <?php } ?>
                </tr>
                <?php endforeach;?>
              </tbody>
            </table>
          </div>
                  <div class="panel-body">
             
      <ul class="pagination">

        {$page}
      </ul>
         </div>

        </div>
      </div>
      <!--/col--> 
      
    </div>
  </div>
</div>
<include file="./foot" />
<script>
 $(".status").click(function(){
     if(window.confirm('本操作不可以逆向,请确认好?')){
                 //alert("确定");
                 return true;
              }else{
                 //alert("取消");
                 return false;
     }
 });
</script>
</body>
</html>